package com.ruoyi.football.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Id;

/**
 * 微信用户对象 wx_user
 * 
 * @author lyx
 * @date 2024-12-05
 */
@TableName("wx_user")
public class WxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @Id
    /** $column.columnComment */
    private Long id;

    /** openID */
    @Excel(name = "openID")
    private String openId;

    /** 微信头像 */
    @Excel(name = "微信头像")
    private String avatar;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String name;

    /** 用户签名 */
    @Excel(name = "用户签名")
    private String signature;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String phone;

    /** 0:不是；1：球场老板 */
    @Excel(name = "0:不是；1：球场老板")
    private Integer isBoss;

    /** 所有球场累计营业额度 */
    @Excel(name = "所有球场累计营业额度")
    private BigDecimal countPrice;

    /** 累计预定的场次 */
    @Excel(name = "累计预定的场次")
    private Long payNum;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 球技水平id */
    @Excel(name = "球技水平id")
    private Long levelId;

    /** 个人签名 */
    @Excel(name = "个人签名")
    private String description;

    /** 场上位置id */
    @Excel(name = "场上位置id")
    private Long majorId;

    @TableField(exist = false)
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSignature(String signature) 
    {
        this.signature = signature;
    }

    public String getSignature() 
    {
        return signature;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIsBoss(Integer isBoss) 
    {
        this.isBoss = isBoss;
    }

    public Integer getIsBoss() 
    {
        return isBoss;
    }
    public void setCountPrice(BigDecimal countPrice) 
    {
        this.countPrice = countPrice;
    }

    public BigDecimal getCountPrice() 
    {
        return countPrice;
    }
    public void setPayNum(Long payNum) 
    {
        this.payNum = payNum;
    }

    public Long getPayNum() 
    {
        return payNum;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setLevelId(Long levelId) 
    {
        this.levelId = levelId;
    }

    public Long getLevelId() 
    {
        return levelId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setMajorId(Long majorId) 
    {
        this.majorId = majorId;
    }

    public Long getMajorId() 
    {
        return majorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openId", getOpenId())
            .append("avatar", getAvatar())
            .append("name", getName())
            .append("signature", getSignature())
            .append("phone", getPhone())
            .append("isBoss", getIsBoss())
            .append("countPrice", getCountPrice())
            .append("payNum", getPayNum())
            .append("birthday", getBirthday())
            .append("levelId", getLevelId())
            .append("description", getDescription())
            .append("majorId", getMajorId())
            .toString();
    }
}
